package com.daguchuangyi.erp_android;

import android.content.Context;
import android.support.multidex.MultiDex;

import com.facebook.stetho.Stetho;
import com.jude.utils.JUtils;
import com.raizlabs.android.dbflow.config.FlowConfig;
import com.raizlabs.android.dbflow.config.FlowManager;
import com.tencent.bugly.crashreport.CrashReport;
//import com.uuzuche.lib_zxing.activity.ZXingLibrary;

/**
 * Created by lijianjian on 2018/3/3.
 */

public class ErpApplication extends android.app.Application {

    private static Context sContext;

    public static Context getAppContext() {
        return sContext;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        sContext = this;

        JUtils.initialize(this);
        JUtils.setDebug(true, "ERP");
//        ZXingLibrary.initDisplayOpinion(this);
        Stetho.initializeWithDefaults(this);
        FlowManager.init(new FlowConfig.Builder(this).build());
        CrashReport.initCrashReport(getApplicationContext(), "d26f7aad34", false);
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this) ;
    }
}
